package com.example.demo04.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.example.demo04.mapper.CourseMapper;
import com.example.demo04.entity.Course;
/**
 * @author admin
 * @Description ${Description}
 * @date 2020-07-18 11:50:00
 */
@Service
public class CourseService{

    @Resource
    private CourseMapper courseMapper;

    
    public int deleteByPrimaryKey(String cId) {
        return courseMapper.deleteByPrimaryKey(cId);
    }

    
    public int insert(Course record) {
        return courseMapper.insert(record);
    }

    
    public int insertSelective(Course record) {
        return courseMapper.insertSelective(record);
    }

    
    public Course selectByPrimaryKey(String cId) {
        return courseMapper.selectByPrimaryKey(cId);
    }

    
    public int updateByPrimaryKeySelective(Course record) {
        return courseMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Course record) {
        return courseMapper.updateByPrimaryKey(record);
    }

}
